package com.magnificent.atlantis.server.ui.panels.user.table;

import com.magnificent.helpers.swing.TableHelper;
import com.magnificent.commons.ui.table.CommonTable;

import javax.swing.*;
import javax.swing.table.TableModel;

/**
 * ServerUser: Babanin
 * Date: 04.04.2009
 * Time: 12:25:50
 */
public class UserTable extends CommonTable {
    public UserTable(UserTableModel userTableModel) {
        super(userTableModel);
    }

    @Override
    public UserTableModel getModel() {
        return (UserTableModel) super.getModel();
    }

    @Override
    public void setModel(TableModel dataModel) {
        super.setModel(dataModel);

        TableHelper.setFixedColumnSize(this, 0, 45);
        TableHelper.setFixedColumnSize(this, 4, 155);
    }
}
